package com.phrp.dao;

import com.phrp.entity.HouseRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.phrp.entity.dto.ApplyPassDataDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ssc
 * @since 2024-05-05
 */
@Mapper
public interface HouseRecordDao extends BaseMapper<HouseRecord> {

    List<ApplyPassDataDTO> selectApplyPass(@Param("startTime") String lastMonday,
                                           @Param("endTime") String lastSunday,
                                           @Param("type") String type);

    ApplyPassDataDTO selectByIdentity(@Param("identity") String identity);
}
